package core.entities;
// default package
// Generated Apr 30, 2014 9:42:09 AM by Hibernate Tools 4.0.0

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * DateExaminari generated by hbm2java
 */
@Entity
@Table(name = "date_examinari", schema = "public")
public class DateExaminari implements java.io.Serializable {

	private int idExaminare;
	private DatePersonaleSubiect datePersonaleSubiect;
	private Unitati unitati;
	private Aviz aviz;
	private ScopExaminare scopExaminare;
	private DateUtilizatori dateUtilizatori;
	private Date dataExaminare;
	private String concluziiPsihologInterviu;
	private Set<ExaminareTestTest> examinareTestTests = new HashSet(0);

	public DateExaminari() {
	}

	public DateExaminari(int idExaminare) {
		this.idExaminare = idExaminare;
	}

	public DateExaminari(int idExaminare,
			DatePersonaleSubiect datePersonaleSubiect, Unitati unitati,
			Aviz aviz, ScopExaminare scopExaminare,
			DateUtilizatori dateUtilizatori, Date dataExaminare,
			String concluziiPsihologInterviu, Set<ExaminareTestTest> examinareTestTests) {
		this.idExaminare = idExaminare;
		this.datePersonaleSubiect = datePersonaleSubiect;
		this.unitati = unitati;
		this.aviz = aviz;
		this.scopExaminare = scopExaminare;
		this.dateUtilizatori = dateUtilizatori;
		this.dataExaminare = dataExaminare;
		this.concluziiPsihologInterviu = concluziiPsihologInterviu;
		this.examinareTestTests = examinareTestTests;
	}

	@Id
	@Column(name = "id_examinare", unique = true, nullable = false)
	public int getIdExaminare() {
		return this.idExaminare;
	}

	public void setIdExaminare(int idExaminare) {
		this.idExaminare = idExaminare;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_subiect")
	public DatePersonaleSubiect getDatePersonaleSubiect() {
		return this.datePersonaleSubiect;
	}

	public void setDatePersonaleSubiect(
			DatePersonaleSubiect datePersonaleSubiect) {
		this.datePersonaleSubiect = datePersonaleSubiect;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_unitate")
	public Unitati getUnitati() {
		return this.unitati;
	}

	public void setUnitati(Unitati unitati) {
		this.unitati = unitati;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_aviz")
	public Aviz getAviz() {
		return this.aviz;
	}

	public void setAviz(Aviz aviz) {
		this.aviz = aviz;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_scop_examinare")
	public ScopExaminare getScopExaminare() {
		return this.scopExaminare;
	}

	public void setScopExaminare(ScopExaminare scopExaminare) {
		this.scopExaminare = scopExaminare;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "id_psiholog_interviu")
	public DateUtilizatori getDateUtilizatori() {
		return this.dateUtilizatori;
	}

	public void setDateUtilizatori(DateUtilizatori dateUtilizatori) {
		this.dateUtilizatori = dateUtilizatori;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "data_examinare", length = 13)
	public Date getDataExaminare() {
		return this.dataExaminare;
	}

	public void setDataExaminare(Date dataExaminare) {
		this.dataExaminare = dataExaminare;
	}

	@Column(name = "concluzii_psiholog_interviu", length = 8192)
	public String getConcluziiPsihologInterviu() {
		return this.concluziiPsihologInterviu;
	}

	public void setConcluziiPsihologInterviu(String concluziiPsihologInterviu) {
		this.concluziiPsihologInterviu = concluziiPsihologInterviu;
	}

	@OneToMany(fetch = FetchType.LAZY, mappedBy = "dateExaminari")
	public Set<ExaminareTestTest> getExaminareTestTests() {
		return this.examinareTestTests;
	}

	public void setExaminareTestTests(Set<ExaminareTestTest> examinareTestTests) {
		this.examinareTestTests = examinareTestTests;
	}

}
